package com.neusoft.neuiotms.dcam.common.repository;

import com.neusoft.neuiotms.dcam.common.model.DcamInstitutions;
import com.neusoft.neuiotms.dcam.common.model.DcamOperationGroup;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface DcamOperationGroupRepository extends JpaRepository<DcamOperationGroup, Long> {

    DcamOperationGroup findByGroupLeaderCode(String username);

    DcamOperationGroup findByDcamInstitutionsIn(List<DcamInstitutions> institutionList);
}
